<template>
  <div id="app">
    <nav class="navbar">
      <div class="navbar-brand">
        <h1>Vue Toolkit Demo</h1>
      </div>
      <div class="navbar-nav">
        <router-link to="/" class="nav-link">首页</router-link>
        <router-link to="/components" class="nav-link">组件</router-link>
        <router-link to="/utils" class="nav-link">工具</router-link>
      </div>
    </nav>
    
    <main class="main-content">
      <router-view />
    </main>
  </div>
</template>

<script setup lang="ts">
// App 组件逻辑
</script>

<style scoped>
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.navbar-brand h1 {
  margin: 0;
  color: #495057;
  font-size: 1.5rem;
  font-weight: 600;
}

.navbar-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: #6c757d;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.router-link-active {
  color: #007bff;
  background-color: #e7f1ff;
}

.main-content {
  padding: 2rem;
  min-height: calc(100vh - 80px);
}
</style>